package com.meter.basic.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.meter.basic.domain.BasicHouse;
import com.meter.basic.domain.BasicMeter;

import java.util.List;

public interface IBasicMeterService extends IService<BasicMeter> {

    BasicMeter selectBasicMeterById(Long meterId);

    List<BasicMeter> selectBasicMeterList(BasicMeter basicMeter);

    int insertBasicMeter(BasicMeter basicMeter);

    int updateBasicMeter(BasicMeter basicMeter);

    boolean checkMeterNoUnique(BasicMeter basicMeter);

    int deleteBasicMeterByIds(String meterIds);

    int deleteBasicMeterById(Long meterId);

    /**
     * 导入热表信息数据
     *
     * @param meterList 热表信息列表
     * @param isUpdateSupport 是否更新支持，如果已存在，则进行更新数据
     * @param operName 操作用户
     * @return 结果
     */
    public String importBaseMeter(List<BasicMeter> meterList, Boolean isUpdateSupport, String operName);
}
